<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        //字符串扩展
        let name = 'zyw.java'
        //判断字符串以什么开头
        console.log(name.startsWith('zyw')) //true
        //以什么结尾
        console.log(name.endsWith('java')) //true
        console.log(name.includes('w.')) //true
    </script>
</head>
<body>

</body>
</html>